﻿<Page
    x:Class="WellDone.SplitCheckDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid
        x:Name="RootPanel"
        Background="#FF98DEF8"
        Opacity=".75"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch">

        <Grid x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Width="400" Height="300" >
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock HorizontalAlignment="Left" Margin="26,32,0,0" FontSize="30" TextWrapping="Wrap" Text="Split # of Ways" VerticalAlignment="Top"/>
            <TextBox x:Name="tbSplit" HorizontalAlignment="Left" Margin="239,26,0,0" FontSize="28" TextWrapping="Wrap" Text="2" VerticalAlignment="Top" SelectionHighlightColor="#FF98DEF8" MaxLength="2" InputScope="Number" TextChanged="tbSplit_TextChanged"/>
            <Button x:Name="btnTableUp" HorizontalAlignment="Left" Margin="305,9,0,0" VerticalAlignment="Top" Height="45" Width="70" Click="btnTableUp_Click" >
                <Path Fill="Black" Data="M 0 6 L 12 6 L 6 0 Z" Height="25" Stretch="Fill" UseLayoutRounding="False" Width="40"/>
            </Button>
            <Button x:Name="btnTableDown" HorizontalAlignment="Left" Margin="305,53,0,0" VerticalAlignment="Top" Height="45" Width="70" Click="btnTableDown_Click" >
                <Path Fill="Black" Data="M 0 0 L 6 6 L 12 0 Z" Height="25" Stretch="Fill" UseLayoutRounding="False" Width="40"/>
            </Button>
            <RadioButton x:Name="rbEvenly" Content="Evenly" HorizontalAlignment="Left" FontSize="28" Margin="45,100,0,0" Padding="3,-6,0,0" VerticalAlignment="Top" IsChecked="True" />
            <RadioButton Content="By Menu Items" HorizontalAlignment="Left" FontSize="28" Margin="45,150,0,0" Padding="3,-6,0,0" VerticalAlignment="Top"/>
            <Button x:Name="btnOK" Content="OK" Width="120" Height="85" FontSize="28" Margin="40,10" HorizontalAlignment="Left" Grid.Row="1" Click="btnOK_Click" />
            <Button x:Name="btnCancel" Content="Cancel" Width="120" Height="85" Margin="40,10" FontSize="28" HorizontalAlignment="Right" Grid.Row="1" Click="btnCancel_Click" />
        </Grid>
    </Grid>
</Page>
